<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addCustomer.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
		table{
			border-collapse: collapse;
		}
		td{
		text-align: left;
		}
	</style>
  </head>
  
  <body>
  <s:form action="Customer_add">
    <table border="1">
  	<tr>
  	<s:textfield name="customer.linkMan" label="联系人姓名"/>
  	</tr>
  	<tr>
  	<s:textfield name="customer.link_tel" label="联系人电话"/>
  	</tr>
  	<tr>
  	<s:textfield name="customer.email" label="邮箱"/>
  	</tr>
  	<tr>
  	<s:textfield name="customer.link_QQ" label="QQ"/>
  	</tr>
  	<tr>
  	<s:textfield name="customer.company" label="公司名称" />
  	</tr>
  	<tr>
  	<s:textfield name="customer.com_tel" label="公司电话号码"/>
  	</tr>
  	<tr>
  	<s:textfield name="customer.com_addr" label="公司地址"/>
  	</tr>
  	<tr>
  	<s:select list="#{0:'未联系',1:'正在联系',2:'已联系'}" name="customer.state" label="状态"></s:select>
  	</tr>
  	<tr>
  	<s:textfield name="customer.description" label="描述"/>
  	</tr>
 <s:submit value="添加"/>
<s:reset value="重置"/>
  </table>
  </s:form>
  <s:form action="Customer">
  	<s:submit value="返回"></s:submit>
  </s:form>
  </body>
</html>
